<div class="simple">
<?php echo CHtml::activeLabelEx($model,'cname'); ?>
    <?php $this->widget('application.widgets.extendedcontrol.extendedcontrol',
              array(
                    'model'=>$model,
                    'attribute'=>'cname',
                    'htmlOptions'=>array('size'=>40),
                    'options'=>array('click'=>'js:function(){alert("this is")}'),
                   )
             );
     ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'address'); ?>
<?php echo CHtml::activeTextArea($model,'address',array('rows'=>3, 'cols'=>39)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'postal'); ?>
<?php echo CHtml::activeTextField($model,'postal',array('size'=>40,'maxlength'=>20)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'country_code'); ?>
<?php echo CHtml::activeDropDownList($model, 'country_code', CHtml::listData(countries::model()->findAll(), 'ccode', 'country'),array('options'=>array('SG'=>array('selected'=>'selected')))); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'email'); ?>
<?php echo CHtml::activeTextField($model,'email',array('size'=>40,'maxlength'=>254)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'pic'); ?>
<?php echo CHtml::activeTextField($model,'pic',array('size'=>40,'maxlength'=>50)); ?>
</div>